package yana.tpe.shop.domain.domains;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;


public class Trade extends AbstractDomain implements Serializable {

    private Set<TradeElement> elements = new HashSet<TradeElement>();
    private Seller seller;
    private Date date;

    public Trade() {
    }

    public Trade(Long id, Seller seller, Date date) {
        this.id = id;
        this.seller = seller;
        this.date = date;
    }

    public Set<TradeElement> getElements() {
        return elements;
    }

    public void setElements(Set<TradeElement> elements) {
        this.elements = elements;
    }

    public Seller getSeller() {
        return seller;
    }

    public void setSeller(Seller seller) {
        this.seller = seller;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Trade{" + "date=" + date + ", elements=" + elements + ", seller=" + seller + '}';
    }
    
    
}
